package org.jivesoftware.smack.filter;

import org.jivesoftware.smack.packet.Packet;

public class PacketExtensionFilter
  implements PacketFilter
{
  private String elementName;
  private String namespace;

  public PacketExtensionFilter(String paramString)
  {
    this(null, paramString);
  }

  public PacketExtensionFilter(String paramString1, String paramString2)
  {
    this.elementName = paramString1;
    this.namespace = paramString2;
  }

  public boolean accept(Packet paramPacket)
  {
    int i;
    if (paramPacket.getExtension(this.elementName, this.namespace) != null)
      i = 1;
    while (true)
    {
      return i;
      i = 0;
    }
  }
}